import React, { Component } from 'react';
import "../../styles/MyKind/Header.css";
import { withRouter } from 'react-router-dom'
class MyHeader extends Component {
    constructor(props){
        super(props)
    }
    tosearch(){
        this.props.history.push("/Search")
    }
    render() {
        return (
            <div className='inputbox'>
                <h3>分类</h3>
                <input type="text" placeholder="搜索商品" onClick={()=>{
                    this.tosearch()
                }}/>
            </div>
        );
    }
}
export default withRouter(MyHeader);